<template>
  <div class="serve">
    <div class="customer-serve" @click="scrollTops">
      <p><i class="iconfont icon-rising classIcon"></i></p>
      <p>回到顶部</p>
    </div>
    <div class="customer-serve">
      <p><i class="iconfont icon-service-fill classIcon"></i></p>
      <p>客服</p>
    </div>
    <div class="customer-serve">
      <p><i class="iconfont icon-writing classIcon"></i></p>
      <p>建议</p>
    </div>
  </div>
</template>

<script>
  export default {
    name: "CustomerServe",
    methods: {
      scrollTops() {
        document.getElementById('content').scrollTo(0, 0);
      }
    }
  }
</script>

<style lang="less" scoped>

  .classIcon {
    font-size: 22px;
  }
  .serve {
    position: fixed;
    color: #000;
    right: 40px;
    bottom: 20%;
    z-index: 100;
    font-size: 12px;
    border-radius: 2px;
    box-shadow: 0 0 5px 1px #afafaf;
    div:nth-child(1) {
      background: rgb(8, 51, 130);
      color: #FFFFFF;
    }
    .customer-serve {
      width: 60px;
      height: 60px;
      background: #fff;
      text-align: center;
      /*line-height: 50px;*/
      cursor: pointer;
    }
  }
</style>
